<?php

namespace app\web\command;

use app\common\util\Tools;
use think\console\Command;
use think\console\Input;
use think\console\Output;
use think\facade\Log;

class CommonTest extends Command
{
    public $url = "http://www.car.com/index.php/"; //访问前缀地址
    public $token = "cd641da826a944c181f88834df647abe";

    //通过数据库
    public function execute(Input $input, Output $output)
    {
        //Route::any('web/passport/login', 'web/passport/login');                                       // 登录
//        $data = Tools::curl($this->url. "web/passport/login", json_encode(["loginToken" => "1f0f58a7fb4fbcb7f4a4d521895de98bad9a185495d31e5421c8df5265fdb2c4-38b1fd9a46e9b85abf8b4ed645772e9c"]));
//        Log::write("post". var_export($data,true));
//        echo $data . "\n\n";
//        echo print_r(json_decode($data,1)) . "\n\n";
    }
}
